package com.sigmatrix.h5.feign;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;

import com.sigmatrix.h5.feign.args.SmsRequest;
import com.sigmatrix.h5.feign.mode.SmsResponse;


@FeignClient("sms-service")
public interface SmsClient {
	
	/**
	 * 
	 *@Title: sendShortMessage
	 *@Description: 发送短信
	 *@return SmsResponse
	 *@author MH
	 *@date 2017年12月14日 上午10:08:43
	 *@param request
	 *@param accessToken
	 *@param eseCode
	 *@return
	 */
	@PostMapping("/isv/post")
	public SmsResponse sendShortMessage(@RequestBody SmsRequest request,@RequestHeader("Authorization")String accessToken,@RequestParam("companyCode")String eseCode);
	
	@PostMapping("/api/post")
	public SmsResponse sendThroughApi(@RequestBody SmsRequest request,@RequestParam("companyCode")String eseCode);
	
}
